loadFromString

abstract suspend fun loadFromString(block: String): List<DesignBlock>

Loads existing blocks from the given string. The blocks are not attached by default and won't be visible until attached to a page or the scene. The UUID of the loaded blocks is replaced with a new one. A damaged string, such as one with a missing key or a value of the wrong type, throws and adds no block.

Return

a list of loaded blocks.

Parameters

block

a string representing the given blocks.